package cn.qf.first.service.Impl;

import cn.qf.first.dao.ShopMapper;
import cn.qf.first.entity.Shop;
import cn.qf.first.service.ShopService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @date: 2021/6/25 19:50
 * @description:
 */

@Service
public class ShopServiceImpl implements ShopService {

    @Autowired
    private ShopMapper shopMapper;

    @Override
    public List<Shop> selectShop() {
        return shopMapper.selectShop();
    }

    @Override
    public List<Shop> selectShopByName(String shopName) {
        return shopMapper.selectShopByName(shopName);
    }

    @Override
    public int delectShopById(Long shop_id) {
        return shopMapper.delectShopById(shop_id);
    }
}
